package com.ltmonitor.web.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
 * 前端树节点模型
 * 主要用于车辆树节点的JSON数据传递
 * @author v5-552
 *
 */
public class VehicleTreeNode implements Serializable{
	//节点id
	private String id;
	//上级节点id
	private String pid;

	private String name;

	private Boolean checked = false;
	private Boolean nocheck = false;

	//private Boolean leaf;

	private String iconSkin;
	
	private int onlineNum;
	
	
	private int totalNum;
	
	private String state = "closed";
	
	private String simNo;
	
	private HashMap attributes = new HashMap();

	private List<VehicleTreeNode> children = new ArrayList<VehicleTreeNode>();

	public VehicleTreeNode() {
	}

	public VehicleTreeNode(String _id, String _text, String pid) {
		setId(_id);
		name = _text;
		//leaf = false;
		this.setIconSkin("");
		this.setPid(pid);
	}

	public VehicleTreeNode(String _id, String _text, String pid, String _iconCss) {
		setId(_id);
		name = _text;
		//leaf = false;
		this.setPid(pid);
		this.setIconSkin(_iconCss);
	}

	public String getName() {
		return name;
	}

	public void setName(String text) {
		this.name = text;
	}


	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<VehicleTreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<VehicleTreeNode> children) {
		this.children = children;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIconSkin() {
		return iconSkin;
	}

	public void setIconSkin(String iconCls) {
		this.iconSkin = iconCls;
	}
/**
	public HashMap getAttributes() {
		return attributes;
	}

	public void setAttributes(HashMap attributes) {
		this.attributes = attributes;
	}
*/
	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	
	public int getOnlineNum() {
		return onlineNum;
	}

	public void setOnlineNum(int onlineNum) {
		this.onlineNum = onlineNum;
	}
	
	public int getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}

	
	public String getSimNo() {
		return simNo;
	}

	public void setSimNo(String simNo) {
		this.simNo = simNo;
	}

	public HashMap getAttributes() {
		return attributes;
	}

	public void setAttributes(HashMap attributes) {
		this.attributes = attributes;
	}

	public Boolean getNocheck() {
		return nocheck;
	}

	public void setNocheck(Boolean nocheck) {
		this.nocheck = nocheck;
	}
}
